<?php 
$user_name = "root";
$password = "success";
$database = "posdatabase";
$server = "127.0.0.1";
$db_handle = mysql_connect($server, $user_name, $password);
$db_found = mysql_select_db($database, $db_handle);

if ($db_found) {

	$SQL = "SELECT * FROM login_table";
	$result = mysql_query($SQL);

	while ( $db_field = mysql_fetch_assoc($result) ) {

		print $db_field['id'] . "<BR>";
		print $db_field['username'] . "<BR>";
		print $db_field['password'] . "<BR>";
	}

	mysql_close($db_handle);

}
else {

	print "Database NOT Found ";
	mysql_close($db_handle);

}
?>